package com.lumivi.game;
import java.util.Observable;
import java.util.Observer;

import com.ximcontroller.controllers.WSController;
import com.ximcontroller.views.XIMFloor;
import com.ximcontroller.views.XIMLargeScreen;
import com.ximcontroller.views.XIMMenu;

import processing.core.*;

public class XIMSimpleExperimenter extends PApplet implements Observer { 

	//prueba 
	//caca
	//muchacaca
	
	PImage logo; 
	
	//views 
	XIMFloor f;
	XIMLargeScreen ls;
	XIMMenu m; 
	
	//controllers 
	WSController wsc; 

	public void setup() {
		size(650, 400);

		smooth();
		background(255); 
		
		logo = loadImage("./lumivi.png"); 

		//views 
		f = new XIMFloor(this);
		ls = new XIMLargeScreen(this);
		m = new XIMMenu(this); 
		
		//controllers 
		wsc = new WSController(); 

		initialize();

	}

	void initialize() {

	}

	public void draw() {
		background(0);

		f.render();
		//f.renderVideo();
		ls.render(); 
		
		pushMatrix(); 
		translate(520, 340); 
		scale((float)0.5);
		image(logo, 0, 0);
		popMatrix(); 
		

	} 
	

	public void update(Observable o, Object arg) {
		// TODO Auto-generated method stub
		
	}
	
	
	
	
	
	

	/**
	 * @return the wsc
	 */
	public WSController getWsc() {
		return wsc;
	}

	/**
	 * @param wsc the wsc to set
	 */
	public void setWsc(WSController wsc) {
		this.wsc = wsc;
	} 
	

}
